import time

import okcoin, houbi, btctrade,btcchina

t = time.time()
a = okcoin.okcoin()
b = houbi.houbi()
c = btctrade.btctrade()
d = btcchina.btcchina()
print("btc:\nokcoin:%s\nhoubi:%s\nbtctrade:%s\nbtcchina:%s" % (a.getlast("btc_cny"),b.getlast("btc"),c.getlast("btc"),d.getlast("btccny")))
print("ltc:\nokcoin:%s\nhoubi:%s\nbtctrade:%s\nbtcchina:%s" % (a.getlast("ltc_cny"),b.getlast("ltc"),c.getlast("ltc"),d.getlast("ltccny")))
print(time.time() - t)